﻿package com.toncen.samepms.basic.domain;

import java.util.Date;

import com.toncen.samepms.common.AbstractDomain;
import com.sky.dataimport.DynamicCellDataCell;
import com.sky.dataimport.DynamicCellDataRow;
import com.sky.dataimport.DynamicRowDataCell;
import com.sky.dataimport.DynamicRowDataRow;
import com.sky.dataimport.StaticDataCell;
import com.sky.dataimport.StaticDataRow;
import com.sky.dataimport.datatype.DateDataType;
import com.sky.dataimport.datatype.IntegerDataType;
import com.sky.dataimport.formater.UtilDateDataFormater;
 
/**
 * 描述：内部通知表BASIC_NOTIFICATION的domain文件
 * 
 * @author tch 
 */
@DynamicRowDataRow(title = "动态行内部通知", sheetIndex = 1, startRowIndex = 2, startCellIndex = 1, inserted = false)
@DynamicCellDataRow(title = "动态列内部通知", sheetIndex = 1, startRowIndex = 2, startCellIndex = 2, inserted = false)
@StaticDataRow(title = "静态行列内部通知", sheetIndex = 1)
public class Notification extends AbstractDomain {
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1339573177183L;
	
	/**
	 * 标题
	 */ 
	@StaticDataCell(rowIndex = 1, cellIndex = 1, title = "标题")
	@DynamicRowDataCell(cellIndex = 1,  title = "标题", require = false)
	@DynamicCellDataCell(rowIndex = 1,  title = "标题", require = false)
	private  String name; 	 
    
	/**
	 * 作者
	 */ 
	@StaticDataCell(rowIndex = 2, cellIndex = 2, title = "作者")
	@DynamicRowDataCell(cellIndex = 2,  title = "作者", require = false)
	@DynamicCellDataCell(rowIndex = 2,  title = "作者", require = false)
	private  String anthor; 	 
    
	/**
	 * 发布时间
	 */ 
	@StaticDataCell(rowIndex = 3, cellIndex = 3, title = "发布时间")
	@DynamicRowDataCell(cellIndex = 3, title = "发布时间", formater = UtilDateDataFormater.class, option = "yyyy-MM-dd", require = false)
	@DynamicCellDataCell(rowIndex = 3, title = "发布时间", formater = UtilDateDataFormater.class, option = "yyyy-MM-dd", require = false)
	@DateDataType
	private  Date publishDate=new Date(); 	 
    
	/**
	 * 内容
	 */ 
	@StaticDataCell(rowIndex = 4, cellIndex = 4, title = "内容")
	@DynamicRowDataCell(cellIndex = 4,  title = "内容", require = false)
	@DynamicCellDataCell(rowIndex = 4,  title = "内容", require = false)
	private  String content; 	 
    
	/**
	 * 顺序
	 */ 
	@StaticDataCell(rowIndex = 5, cellIndex = 5, title = "顺序")
	@DynamicRowDataCell(cellIndex = 5,  title = "顺序", require = false)
	@DynamicCellDataCell(rowIndex = 5,  title = "顺序", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  int sequence=10; 	 
    
	/**
	 * 创建人
	 */ 
	@StaticDataCell(rowIndex = 7, cellIndex = 7, title = "创建人")
	private  com.toncen.samepms.basic.domain.User createUser; 	 
    
	/**
	 * 创建时间
	 */ 
	@StaticDataCell(rowIndex = 8, cellIndex = 8, title = "创建时间")
	@DynamicRowDataCell(cellIndex = 8, title = "创建时间", formater = UtilDateDataFormater.class, option = "yyyy-MM-dd", require = false)
	@DynamicCellDataCell(rowIndex = 8, title = "创建时间", formater = UtilDateDataFormater.class, option = "yyyy-MM-dd", require = false)
	@DateDataType
	private  Date createDate=new Date(); 	 
    
	/**
	 * 浏览次数
	 */ 
	@StaticDataCell(rowIndex = 9, cellIndex = 9, title = "浏览次数")
	@DynamicRowDataCell(cellIndex = 9,  title = "浏览次数", require = false)
	@DynamicCellDataCell(rowIndex = 9,  title = "浏览次数", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  long browseCount=0; 	 
    

	public Notification() {
		super();
	}

	/**
	 * @return the  name
	 */
	public  String getName() {
		return  name;
	}

	/**
	 * @param  name
	 *            the  name to set
	 */
	public void setName( String  name) {
		this. name =  name;
	}
	
	/**
	 * @return the  anthor
	 */
	public  String getAnthor() {
		return  anthor;
	}

	/**
	 * @param  anthor
	 *            the  anthor to set
	 */
	public void setAnthor( String  anthor) {
		this. anthor =  anthor;
	}
	
	/**
	 * @return the  publishDate
	 */
	public  Date getPublishDate() {
		return  publishDate;
	}

	/**
	 * @param  publishDate
	 *            the  publishDate to set
	 */
	public void setPublishDate( Date  publishDate) {
		this. publishDate =  publishDate;
	}
	
	/**
	 * @return the  content
	 */
	public  String getContent() {
		return  content;
	}

	/**
	 * @param  content
	 *            the  content to set
	 */
	public void setContent( String  content) {
		this. content =  content;
	}
	
	/**
	 * @return the  sequence
	 */
	public  int getSequence() {
		return  sequence;
	}

	/**
	 * @param  sequence
	 *            the  sequence to set
	 */
	public void setSequence( int  sequence) {
		this. sequence =  sequence;
	}
	
	/**
	 * @return the  createUser
	 */
	public  com.toncen.samepms.basic.domain.User getCreateUser() {
		return  createUser;
	}

	/**
	 * @param  createUser
	 *            the  createUser to set
	 */
	public void setCreateUser( com.toncen.samepms.basic.domain.User  createUser) {
		this. createUser =  createUser;
	}
	
	/**
	 * @return the  createDate
	 */
	public  Date getCreateDate() {
		return  createDate;
	}

	/**
	 * @param  createDate
	 *            the  createDate to set
	 */
	public void setCreateDate( Date  createDate) {
		this. createDate =  createDate;
	}
	
	/**
	 * @return the  browseCount
	 */
	public  long getBrowseCount() {
		return  browseCount;
	}

	/**
	 * @param  browseCount
	 *            the  browseCount to set
	 */
	public void setBrowseCount( long  browseCount) {
		this. browseCount =  browseCount;
	}
	
}
